/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.terminalrodoviario;

/**
 *
 * @author marcelo
 */
public class RoutePrice extends BaseEntity<RoutePrice> {
    private Route route;
    private double price;
    private City cityFrom;
    private City cityTo;

  // <editor-fold defaultstate="collapsed" desc="Builders">
    public RoutePrice(){}
    public RoutePrice(Route route, City cityFrom,City cityTo, double price) {
        this.route = route;
        this.cityFrom = cityFrom;
        this.cityTo = cityTo;
        this.price = price;
    }

    public City getCityFrom() {
        return cityFrom;
    }

    public void setCityFrom(City cityFrom) {
        this.cityFrom = cityFrom;
    }

    public City getCityTo() {
        return cityTo;
    }

    public void setCityTo(City cityTo) {
        this.cityTo = cityTo;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public Route getRoute() {
        return route;
    }

    public void setRoute(Route route) {
        this.route = route;
    }
    // </editor-fold>
    
}
